.PHONY: all build clean docker help

outputPath=_output
binaryName=judge-client
all: build
build:
	@go mod tidy
	@mkdir logs
	@touch logs/run.log
	@touch logs/compile.log
	@go build -o ${outputPath}/${binaryName} main.go

clean:
	rm -rf _output
	rm -rf logs


help:
	@echo "make 格式化go代码 并编译生成二进制文件"
	@echo "make build 编译go代码生成二进制文件"
	@echo "make clean 清理中间目标文件"
	@echo "make test 执行测试case"
	@echo "make check 格式化go代码"
	@echo "make cover 检查测试覆盖率"
	@echo "make run 直接运行程序"
	@echo "make docker 构建docker镜像"